
<label class="title label-white-1">1. Chọn miền</label>
<ul class="content list-choose blue">
    <?php
    $arrB = array();
    $arrT = array();
    $arrN = array();
    for ($i = 0; $i < count($result); $i++) {
        if ($result[$i][2] == 'B') {
            array_push($arrB, $result[$i]);
        } else if ($result[$i][2] == 'T') {
            array_push($arrT, $result[$i]);
        } else {
            array_push($arrN, $result[$i]);
        }
    }
    ?>
    <li data-region="B">
        <a><?php echo $arrB[0]['Description']; ?></a>
        <input class="none" type="checkbox" name="provinceID" value="<?php echo $arrB[0]['ProvinceID']; ?>" checked="checked" />
    </li>

    <li data-region="N">
        <a>
            <?php echo $arrN[0]['Description']; ?>
        </a>
        <ul>
            <?php
            for ($k = 0; $k < count($arrN); $k++) {
                ?>
                <li>
                    <div class="checkbox"><input type="checkbox" name="provinceID" value="<?php echo $arrN[$k]["ProvinceID"]; ?>"/> <?php echo $arrN[$k]['Name']; ?> </div>
                </li>
                <?php
            }
            ?>
        </ul>
    </li>

    <li data-region="T">
        <a><?php echo $arrT[0]['Description']; ?></a>
        <ul>
            <?php
            for ($j = 0; $j < count($arrT); $j++) {
                ?>
                <li>
                    <div class="checkbox"><input type="checkbox" name="provinceID" value="<?php echo $arrT[$j]["ProvinceID"]; ?>"/> <?php echo $arrT[$j]['Name']; ?> </div>
                </li>
                <?php
            }
            ?>
        </ul>
    </li>
</ul>
<script>
    $('#mien > .content > li:eq(0)').addClass('actived');
</script>